package com.originit.order.server.vo;

import lombok.Getter;

@Getter
public class ResultVO<T>
{

    private Integer code;

    private String message;

    private T data;

    public ResultVO(Integer code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public static <T> ResultVO<T> success(T data) {
        return new ResultVO<T>(0,"请求成功",data);
    }
}